package gameStream.display
{
	import flash.display.Sprite;
	
	import org.gof.display.IDisplayData;
	import org.gof.display.IGODisplayPosition;

	public class BallDisplayData implements IDisplayData
	{
		public var sprite:Sprite;
		private var _position:BallPosition;
		private var _name:String;
		
		public function BallDisplayData(sprite:Sprite,name:String)
		{
			this.sprite = sprite;
			this._name = name;
		}
		/**
		 * gets position
		 */
		public function get position():IGODisplayPosition
		{
			return(_position);
		}
		
		/**
		 * sets position
		 * 
		 * @param position    position
		 */
		public function set position(position:IGODisplayPosition): void
		{
			_position = position as BallPosition;
		}
		
		public function get name(): String
		{
			return (_name);
		}
		
	}
}